#include "procedure.h"

Procedure::Procedure(QString name, QString id, int status = 2) : m_procedure_name(name),
                                                             m_procedure_ID(id),
                                                             m_status(status)
{

}

Procedure::Procedure(const Procedure &other)
{
    this->m_procedure_name = other.m_procedure_name;
    this->m_procedure_ID = other.m_procedure_ID;
    this->m_status = other.m_status;
}

Procedure &Procedure::operator=(const Procedure &other)
{

}

bool Procedure::operator==(const Procedure &other) const
{
    return m_status == other.m_status
            && m_procedure_name == other.m_procedure_name
            && m_procedure_ID == other.m_procedure_ID;
}

void Procedure::f_changeStatus(int t_stat)
{
    this->m_status = t_stat;
}

QDebug operator<<(QDebug dbg, const Procedure &data)
{
    dbg.nospace() << "Procedure(" << data.m_procedure_ID << "," << data.m_procedure_name << ", " << data.m_status << ")";
    return dbg.maybeSpace();
}
